<template>
    <div class="tmpl">
        <!-- 1.0 左边菜单 -->
        <el-col :span="4">
            <img src="../../static/imgs/logo.png" alt="">
            <div class="layout menu">
                <el-menu default-active="1-2" class="el-menu-vertical-demo">
                    <el-submenu index="1">
                        <template slot="title">
                            <i class="el-icon-message"></i>购物商城</template>
                        <el-menu-item-group>
                            <router-link to="/admin/goodslist">
                                <el-menu-item index="1-1">内容管理</el-menu-item>
                            </router-link>
                           
                            <el-menu-item index="1-2">分类管理</el-menu-item>
                            <el-menu-item index="1-3">评论管理</el-menu-item>
                        </el-menu-item-group>
                    </el-submenu>
                    <el-submenu index="2">
                        <template slot="title">
                            <i class="el-icon-message"></i>订单管理</template>
                        <el-menu-item-group>
                            <el-menu-item index="2-1">订单列表</el-menu-item>
                            <el-menu-item index="2-2">分类管理</el-menu-item>
                            <el-menu-item index="2-3">评论管理</el-menu-item>
                        </el-menu-item-group>
                    </el-submenu>
                    <el-submenu index="3">
                        <template slot="title">
                            <i class="el-icon-message"></i>定单管理</template>
                        <el-menu-item-group>
                            <el-menu-item index="3-1">选项1</el-menu-item>
                            <el-menu-item index="3-2">选项2</el-menu-item>
                        </el-menu-item-group>

                    </el-submenu>
                    </el-submenu>

                </el-menu>
                </el-menu>
            </div>
        </el-col>
        <el-col :span="20">
            <!--2.0 顶部登录信息条 -->
            <el-row>
                <el-col :span="24">
                    <div class="topbg">
                        <el-row>
                            <!-- 左边的图标 -->
                            <el-col :span="1">
                                <i class="el-icon-menu"></i>
                            </el-col>
                            <!-- 右边的登录信息和相关操作 -->
                            <el-col :span="23">
                                欢迎黄飞龙登陆
                                <el-dropdown>
                                    <el-button type="primary">
                                        更多菜单
                                        <i class="el-icon-caret-bottom el-icon--right"></i>
                                    </el-button>
                                    <el-dropdown-menu slot="dropdown">
                                        <el-dropdown-item>修改密码</el-dropdown-item>
                                        <el-dropdown-item>注销</el-dropdown-item>
                                    </el-dropdown-menu>
                                </el-dropdown>
                            </el-col>
                        </el-row>
                    </div>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="24">
                    <!-- 3.0 其他功能的渲染区占位符 -->
                    <router-view></router-view>
                </el-col>
            </el-row>
        </el-col>
        </el-row>
    </div>
</template>

<script>

    export default {
        data() {
            return {
            }
        },
        methods: {
        }
    }
</script>
<style scoped>
</style>